﻿using System;
using YinfangWeb.Common;

namespace YinfangWeb.Model
{
	/// <summary>
	/// UserData
	/// </summary>
    [Serializable]
	public class UserData
	{
		/// <summary>
		/// UserDataID
        /// </summary>
        [FieldName("UserDataID")]		
		public int UserDataID
		{
			get;
			set;
		}
        
		/// <summary>
		/// UserName
        /// </summary>
        [FieldName("UserName")]		
		public string UserName
		{
			get;
			set;
		}
        
		/// <summary>
		/// UserIdentity
        /// </summary>
        [FieldName("UserIdentity")]		
		public int UserIdentity
		{
			get;
			set;
		}
        
		/// <summary>
		/// RelTabName
        /// </summary>
        [FieldName("RelTabName")]		
		public string RelTabName
		{
			get;
			set;
		}
        
		/// <summary>
		/// RelFieldID
        /// </summary>
        [FieldName("RelFieldID")]		
		public int RelFieldID
		{
			get;
			set;
		}
        
		/// <summary>
		/// Mobile
        /// </summary>
        [FieldName("Mobile")]		
		public string Mobile
		{
			get;
			set;
		}
        
		/// <summary>
		/// Email
        /// </summary>
        [FieldName("Email")]		
		public string Email
		{
			get;
			set;
		}
        
		/// <summary>
		/// UserPwd
        /// </summary>
        [FieldName("UserPwd")]		
		public string UserPwd
		{
			get;
			set;
		}
        
		/// <summary>
		/// Salt
        /// </summary>
        [FieldName("Salt")]		
		public string Salt
		{
			get;
			set;
		}
        
		/// <summary>
		/// UserState
        /// </summary>
        [FieldName("UserState")]		
		public int UserState
		{
			get;
			set;
		}
        
		/// <summary>
		/// UserRoleID
        /// </summary>
        [FieldName("UserRoleID")]		
		public int UserRoleID
		{
			get;
			set;
		}
        
		/// <summary>
		/// BranchDataID
        /// </summary>
        [FieldName("BranchDataID")]		
		public int BranchDataID
		{
			get;
			set;
		}
        
		/// <summary>
		/// ViewName
        /// </summary>
        [FieldName("ViewName")]		
		public string ViewName
		{
			get;
			set;
		}
        
		/// <summary>
		/// OpenID
        /// </summary>
        [FieldName("OpenID")]		
		public string OpenID
		{
			get;
			set;
		}
        
		/// <summary>
		/// UserLogo
        /// </summary>
        [FieldName("UserLogo")]		
		public string UserLogo
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegDateTime
        /// </summary>
        [FieldName("RegDateTime")]		
		public DateTime RegDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegUserID
        /// </summary>
        [FieldName("RegUserID")]		
		public int RegUserID
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegFullName
        /// </summary>
        [FieldName("RegFullName")]		
		public string RegFullName
		{
			get;
			set;
		}
        
        public UserData Clone()
        {
            return (UserData)this.MemberwiseClone();
        }
        
        public UserData()
        {
            UserName = string.Empty;
            RelTabName = string.Empty;
            Mobile = string.Empty;
            Email = string.Empty;
            UserPwd = string.Empty;
            Salt = string.Empty;
            ViewName = string.Empty;
            OpenID = string.Empty;
            UserLogo = string.Empty;
            RegDateTime = ConvertHelper.DefaultDate;
            RegFullName = string.Empty;
        }
	}
}
